package com.ly.honor.controller;

import com.ly.honor.service.OrderStatusService;
import com.ly.honor.util.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 李某人
 * @Date 2023/3/31 21:11
 * @Version 1.0
 */
@RestController
@RequestMapping("orderStatus")
@Validated
@Api(tags = "订单状态管理")
public class OrderStatusController {

    @Autowired
    private OrderStatusService orderStatusService;

    @GetMapping("getOrderStatusList")
    public Result getOrderStatusList(){
        return Result.ok(orderStatusService.list());
    }
}
